package pl.edu.agh.neural.simple.activation;

public class StepActivation implements IActivationFunction {

    private double parameter;

    public StepActivation(double parameter) {
        this.parameter = parameter;
    }

    @Override
    public double evaluate(double argument) {
        return argument >= parameter ? 1.0 : 0.0;
    }

    @Override
    public double evaluateDerivative(double argument) {
        return 0;
    }
}
